public class Code009 {
	public static void main(String[] args) {
		for (int j = 0; j <10; j++) {		
		for (int i = 0; i < 10; i++) {
			if((j>0&&j<9)&&(i>0&&i<9)){
				System.out.print(" ");
				continue;
			}
			System.out.print("*");
		}
		System.out.println();
		}
		
		
		
	}
}


